let stu = require('../Dao/mongse');


// stu.getuser(1, 3).then(data=>{
//     console.log(data);
// })

// stu.getTolNum().then(data => {
//     console.log(data);
// })


// stu.getlog({user:'yy',pwd:'123'}).then(data => {
//     console.log(data);
// })

// stu.logcha({ user: 'yy'}).then(data => {
//     console.log(data);
// })

// stu.logAdd({ user: 'yy', pwd: '123' }).then(data => {
//     console.log(data);
// })


// stu.insertUser({ name: '杨勇', age: 18, gender: '男', address: '巴中' }).then(data=>{
//     console.log(data);
// })



// stu.remove({ _id:"62f46d96a74d2fb3fdf42b71"}).then(data => {
//     console.log(data);
// })

// stu.remove({ _id: "62f46d96a74d2fb3fdf42b71" }).then(data => {
//     console.log(data);
// })

// stu.updateStu("62f363826c64c39e67062e43" ,{name:'赵四',gender:'男'}).then(data => {
//     console.log(data);
// })

/**
 * {
    name : "001",
    age : 20,
    gender : "男",
    address : "深圳"
}
{
    name : "002",
    age : 20,
    gender : "男",
    address : "深圳"
}
{
    name : "003",
    age : 20,
    gender : "男",
    address : "深圳"
}
 * 
 * 
 */

stu.deletions({ _id: { $in: ['62f7b745039214ac5d678780', '62f7b745039214ac5d678783','62f7b745039214ac5d678786']}}).then(data => {
    console.log(data);
})